package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.bean.vo.ShopApplyVO;import com.lanchetech.entity.ShopApply;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface ShopApplyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopApply record);

    int insertSelective(ShopApply record);

    ShopApply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopApply record);

    int updateByPrimaryKey(ShopApply record);

    List<ShopApplyVO> findAllPage(PageReq req);

    int updateDeletedById(@Param("updatedDeleted") Byte updatedDeleted, @Param("id") Long id);

    ShopApply findOneByUserIdAndDeleted(@Param("userId") Long userId, @Param("deleted") Byte deleted);

    ShopApply findOneByPhone(String phone);

    void updateCount(@Param("id") Long id,@Param("count") int count);
}